import { LoginInfo } from "@/store/modules/auth";
import { http } from "@/utils/http/axios";

/**
 * 登录方法
 * @param params 登录信息
 */
export const login = (params: LoginInfo) => {
  return http.request({
    url: "/login",
    method: "POST",
    params,
  });
};

export const logout = () => {
  return http.request({
    url: "/logout",
    method: "GET",
  });
};
